#ifndef COMPONENT_H
#define COMPONENT_H


#include<string>
using namespace std;

//所有饮料的基类
class IBeverage
{
public:
    IBeverage() {}
    virtual ~IBeverage(){}
    virtual string Name()=0;//名字
    virtual double Cost()=0;//价格
};

#endif // COMPONENT_H
